package com.finance.cooperate.common.utils;

import org.springframework.context.ApplicationContext;

/**
 * @ClassName SpringContextUtil
 * @Description spring上下文
 * @Author shen
 * @Date 2022/5/25 15:22
 * @Modify ...
 */
public class SpringContextUtil {

    private static volatile ApplicationContext applicationContext;

    public static ApplicationContext getApplicationContext() {
        return applicationContext;
    }

    public static void setApplicationContext(ApplicationContext applicationContext) {
        SpringContextUtil.applicationContext = applicationContext;
    }
}
